<?php

// This is the configuration for yiic console application.
// Any writable CConsoleApplication properties can be configured here.
return array(
    'basePath' => dirname(__FILE__) . DIRECTORY_SEPARATOR . '..',
    'name' => 'My Console Application',
    // preloading 'log' component
    'preload' => array('log'),
    'import' => array(
        /** Importación de modulo * */
        'application.models.*',
        'application.components.*',
        'ext.AweCrud.components.*', // AweCrud components
        'application.modules.cruge.components.*',
        'application.modules.cruge.extensions.crugemailer.*',
        //actividades
        'application.modules.actividades.models.*',
        'application.modules.alertas.models.*',
        //campañas
        'application.modules.campanias.models.*',
        'application.modules.campanias.components.*',
        //cobranzas
        'application.modules.cobranzas.models.*',
        //crm
        'application.modules.crm.components.*',
        'application.modules.crm.models.*',
        //eventos
        'application.modules.eventos.models.*',
        'application.modules.incidencias.models.*',
        'application.modules.llamadas.models.*',
        'application.modules.mail.models.*',
        'application.modules.mandrillmail.models.*',
        'application.modules.notas.models.*',
        'application.modules.oportunidades.models.*',
        //sms
        'application.modules.sms.components.*',
        'application.modules.sms.models.*',
        //tareas
        'application.modules.tareas.models.*',
        //nosey
        'application.modules.nosey.components.*',
        'ext.yii-mail.YiiMailMessage',
        'ext.YiiMailer.YiiMailer',
        'ext.mandrill-api-php.src.*',
        'application.vendors.phpexcel.PHPExcel',
        'application.modules.gamification.components.*',
        'application.modules.gamification.models.*',    
        'application.modules.nosey.models.*',
    ),
    'modules' => array(
        'mandrillmail',
    ),
    // application components
    'components' => array(
        // uncomment the following to use a MySQL database
        'db' => array(
            'connectionString' => 'mysql:host=localhost;dbname=truulo_crm',
            'emulatePrepare' => true,
            'username' => 'root',
            'password' => '',
            'charset' => 'utf8',
        ),
        // uncomment the following to use a MySQL database
        /*
          'db'=>array(
          'connectionString' => 'mysql:host=localhost;dbname=testdrive',
          'emulatePrepare' => true,
          'username' => 'root',
          'password' => '',
          'charset' => 'utf8',
          ),
         */
        'log' => array(
            'class' => 'CLogRouter',
            'routes' => array(
                array(
                    'class' => 'CFileLogRoute',
                    'logFile' => 'comandoc.log',
                    'levels' => 'error, warning',
                ),
                array(
                    'class' => 'CFileLogRoute',
                    'logFile' => 'comandoc_trace.log',
                    'levels' => 'trace',
                ),
            ),
        ),
    ),
);
